package com.baozi.product.service;

import com.baozi.product.entity.ProductCategory;
import com.baozi.product.repository.ProductCategoryRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductCategoryService {

    @Autowired
    ProductCategoryRepository productCategoryRepository;

    public List<ProductCategory> findByCategoryTypeIn(List<Integer> categoryType){
       return productCategoryRepository.findByCategoryTypeIn(categoryType);
    }

}
